extends HFlowContainer
class_name WeighCoins

const COIN = preload("res://core/puzzles/fake_coin/coin.png")


func add_coins(count: int, color: Color) -> void:
	for i in range(count):
		var texture = TextureRect.new()
		texture.texture = COIN
		texture.modulate = color
		add_child(texture)


func clear_coins() -> void:
	for child in get_children():
		child.queue_free()
	
